var manager, g;
        $(f_initGrid);
        function f_initGrid()
        {
        	var model="Cart";
        	var message="订单";
            g = manager = $("#maingrid").ligerGrid({
                columns: [
                { display: '主键', name: 'id', width: 50, type: 'int', frozen: true },
                { display: '订单ID', name: 'order.id',width: 60 },
                { display: '商品名称', name: 'product.name',width:160 },
                { display: '商品型号', name: 'attrsName',width: 260 },
                { display: '购买数量', name: 'num',width: 60 },
                { display: '评分', name: 'score',width: 160 },
				{ display: '评论', name: 'comment',width: 120 },
                { display: '操作', isSort: false, width: 120, render: function (rowdata, rowindex, value)
                {
                	var h = "<a href='javascript:beginEdit(" + rowindex + ",\"" + model + "\",\"" + message + "\")'>修改</a> ";
 	                h+= "<a href='javascript:deleteRow(" + rowindex + ",\"" + model + "\")'>删除</a> ";
 	                
                    return h; 
                }
                }
                ],
                onSelectRow: function (rowdata, rowindex)
                {
                    $("#txtrowindex").val(rowindex);
                },
                enabledEdit: false,clickToEdit:false, isScroll: false,
                url:"manageLoadCartList?order.id="+p_orderId,	
                pageSize:10,
                width: '100%'
               
            });   
        }
